import {DataTypes} from "sequelize";
import {sequelize} from "../../../../config/mysqlDB.js";

const hobbyModel = sequelize.define('hobby', {
  id: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    autoIncrement: true,
  },
  name: {
    type: DataTypes.INTEGER,
    allowNull: false,
  }
});

hobbyModel.sync({force: false}).then((res) => {
});

export default hobbyModel;


